
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@ include file="cabecalho.jsp" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

</head>
<body>
<script language="javascript">
function addRegistro(id,sis)
{
    
        document.frmAddRegistro.id.value=id;
        document.frmAddRegistro.submit();

}
</script>

<br>
<br>
<div align="center">
		<div class="topocentro"><b>VENDA  -  CLIENTES</b></div>
		<div align="left" class="centro">
		<table width="100%">
			<tr>
				<td>
				
				<form action="VendaListaCliente" method="post" >
					<table>
					<tr>
						<td>
							Nome:
						</td>
						<td>
							 <input type="text" name="nome" size="85"/><br>
						</td>
					 	<td>
					 	</td>
					 	<td>
					 		<input type="submit" name="enviar" value="Buscar" />
					 	</td>
					 </tr>
					</table>
				</form>
				
				</td>
			</tr>
			<tr>
				<td>
					<br>
				</td>
			</tr>
			<tr>
				<td colspan="3">
					<table width=100% class="mostra">
					
						<tr class="mostra"> 
							<th class="mostra">Cod. </th> 
							<th class="mostra">Nome</th> 
							<th class="mostra">E-mail </th>  
							<th class="mostra">Telefone </th>  
							<th class="mostra">Incluir</th>
						</tr>
						
						<c:forEach var="pessoa" items="${pessoaLista}">
        					<tr class="mostra">
          						<td class="mostra">${pessoa.codigo}</td>
          						<td class="mostra">${pessoa.nome}</td>
          						<td class="mostra">${pessoa.email}</td>
          						<td class="mostra">${pessoa.telefone}</td>
          						<td class="mostra">
          							 <a href="javascript:addRegistro(${pessoa.codigo});">
          								<img border="0" src="imagens/mais.png" alt="Escolher Cliente">
          							</a>
          						</td>
        					</tr>
      					</c:forEach>
												
					</table>
				</td>
			</tr>
			
		</table>
		</div>
	</div>
	    <form name="frmAddRegistro" method="POST" action="VendaIncluirCliente">
            <input name="id" style="text-transform:uppercase;" type="hidden" size="1" value=""/>
            <input name="sistema" style="text-transform:uppercase;" type="hidden" size="1" value=""/>
        </form>
</body>
</html>